<gn-buttons>
  <button mat-raised-button gnTableButtonNew gnDialog [content]="typeEdit"
          (onClose)="table.cleanSelectionAndLoadData()"></button>
  <button mat-raised-button gnTableButtonDelete [table]="table" (click)="table.delete()"></button>
  <button mat-raised-button gnDialog [content]="typeRole"
          [disabled]="!table.hasSelectedOne" [data]="table.selectedId" (onClose)="table.cleanSelectionAndLoadData()">
    设置角色
  </button>
  <button mat-raised-button color="accent" [disabled]="!table.hasSelected" (click)="resetPassword()">重置密码
  </button>
</gn-buttons>
<gn-table url="/MANAGE-SERVICE/administrators" idField="id" [columns]="columns" [includes]="['roles']" sortField="name">
</gn-table>
